import { HTTP } from '../utils/request';
const http = new HTTP();
import global from '../config/index';


// 查询提现订单
export function getWithdrawOrderForm({page,orderCode,orderStatus,accountType,remark,size = 10}){
  return http.request({
    url: '/app/query/withdraw/order/form',
    data: {
      'orderCode': orderCode, // 订单号
      'orderStatus': orderStatus, // 订单状态
      'accountType': accountType, // 提现类型，0：CNY
      'remark': remark,
      'page': page,
      'size': size,
    },
  })
}

// 查询已有的充值订单
export function queryTopUpOrderForm({orderCode,orderStatus,accountType = '0',page,size = 10}){
  return http.request({
    url: '/app/query/top/up/order/form',
    data: {
      'orderCode': orderCode, // 订单号
      'orderStatus': orderStatus, // 状态，0:待支付,1:待审核,2:已拒绝,3:已取消,4:已完成
      'accountType':accountType, // 账户类型 
      'page': page,
      'size': size,
    }
  })
}